package com.cqie.service.impl;

import com.cqie.dto.DepartmentInfoDto;
import com.cqie.entity.DepartmentInfo;
import com.cqie.mapper.DepartmentInfoMapper;
import com.cqie.service.IDepartmentInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 科室信息 服务实现类
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-30
 */
@Service
public class DepartmentInfoServiceImpl extends ServiceImpl<DepartmentInfoMapper, DepartmentInfo> implements IDepartmentInfoService {

    @Resource
    private DepartmentInfoMapper departmentInfoMapper;

    /**
     * 查询科室List
     * @param likeQuery 科室名称/科室编码
     * @return
     */
    @Override
    public List<DepartmentInfoDto> getDepartmentInfoList(String likeQuery) {

        return departmentInfoMapper.getDepartmentInfoList(likeQuery);
    }
}
